package com.yigo.bsc.api.dict;

import com.yigo.bsc.api.dict.command.CreateDictItemCmd;
import com.yigo.bsc.api.dict.command.CreateDictTypeCmd;
import com.yigo.bsc.api.dict.query.DictItemQuery;
import com.yigo.bsc.api.dict.resp.DictItemListResp;
import com.yigo.framework.http.Q;
import com.yigo.framework.http.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.*;

/**
 * @author chenzl
 */
public interface BscDictFeign {

    @PostMapping("bsc/dict/createDictType")
    R createDictType(@RequestBody @Valid Q<CreateDictTypeCmd> q);

    @PostMapping("bsc/dict/createDictItem")
    R createDictItem(@RequestBody @Valid Q<CreateDictItemCmd> q);

    @PostMapping("bsc/dict/queryDictItemList")
    R<List<DictItemListResp>> queryDictItemList(@RequestBody Q<DictItemQuery> q);
}
